
package com.hitechbangla.fctu.base.map;

import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.List;


 
public class MapType implements Serializable{
    
        MapType deserializer = new MapType();
        List<FCTUMap> worldMap = deserializer.deserialzeAddress();
        BorderMap bmap = (BorderMap)worldMap.get(0);
        /*for(Loop l : bmap.loopList){
            //System.out.println(l.pointlist.size());
        }*/
	   ////System.out.println(worldMap.size());

        public static List<FCTUMap> deserialzeAddress(){
 
	   List<FCTUMap> worldMap;
 
	   try{
 
		   FileInputStream fin = new FileInputStream("src\\resources\\mapType.object");
		   ObjectInputStream ois = new ObjectInputStream(fin);
		   worldMap = (List<FCTUMap>) ois.readObject();
                  // //System.out.println(world);
		   ois.close();
 
		   return worldMap;
 
	   }catch(Exception ex){
		   ex.printStackTrace();
		   return null;
	   } 
   } 
}
    

